package com.ruoyi.trade.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 月分红信息对象 monthly_dividend
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class MonthlyDividend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一标识ID */
    private Long id;

    /** 分红日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分红日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dividendDate;

    /** 分红金额 */
    @Excel(name = "分红金额")
    private BigDecimal dividendAmount;

    /** 投资信息id */
    @Excel(name = "投资信息id")
    private Long investmentId;

    /** 投资人姓名 */
    @Excel(name = "投资人姓名")
    private String investorName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setDividendDate(Date dividendDate) 
    {
        this.dividendDate = dividendDate;
    }

    public Date getDividendDate() 
    {
        return dividendDate;
    }

    public void setDividendAmount(BigDecimal dividendAmount) 
    {
        this.dividendAmount = dividendAmount;
    }

    public BigDecimal getDividendAmount() 
    {
        return dividendAmount;
    }

    public void setInvestmentId(Long investmentId) 
    {
        this.investmentId = investmentId;
    }

    public Long getInvestmentId() 
    {
        return investmentId;
    }

    public void setInvestorName(String investorName) 
    {
        this.investorName = investorName;
    }

    public String getInvestorName() 
    {
        return investorName;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dividendDate", getDividendDate())
            .append("dividendAmount", getDividendAmount())
            .append("investmentId", getInvestmentId())
            .append("investorName", getInvestorName())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
